package com.wcar.store.controller;

import com.wcar.common.vo.Result;
import com.wcar.store.service.PayMoneyService;
import com.wcar.store.vo.CouponVo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @BelongsProject: four-wcar-idea
 * @BelongsPackage: com.wcar.store.controller
 * @Author: 李睢康
 * @CreateTime: 2024-06-06  09:51
 */
@RestController
@RequestMapping("/store/payMoney")
public class PayMoneyController {
    @Resource
    private PayMoneyService payMoneyService;
    @PostMapping("/api/payCarMoney")
    public Result<Integer> payMoney(@RequestBody CouponVo couponVo){
        return payMoneyService.payMoney(couponVo);
    }
}
